package com.prft.rms.entity;

// Generated Aug 18, 2009 4:13:41 PM by Hibernate Tools 3.2.1.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * SkillInfo generated by hbm2java
 */
@Entity
@Table(name = "SKILL_INFO", catalog = "RMS", uniqueConstraints = @UniqueConstraint(columnNames = "SKILL_NAME"))
public class SkillInfo implements java.io.Serializable {

	private Integer skillId;
	private String skillName;
	private String skillDesc;
	private Set<EmployeeSkill> employeeSkills = new HashSet<EmployeeSkill>(0);
	private Set<SkillCategorySkillInfo> skillCategorySkillInfos = new HashSet<SkillCategorySkillInfo>(0);
	private Set<EmployeeSkill> employeeSkills_1 = new HashSet<EmployeeSkill>(0);

	public SkillInfo() {
	}

	public SkillInfo(String skillName) {
		this.skillName = skillName;
	}

	public SkillInfo(String skillName, String skillDesc, Set<EmployeeSkill> employeeSkills,
			Set<SkillCategorySkillInfo> skillCategorySkillInfos, Set<EmployeeSkill> employeeSkills_1) {
		this.skillName = skillName;
		this.skillDesc = skillDesc;
		this.employeeSkills = employeeSkills;
		this.skillCategorySkillInfos = skillCategorySkillInfos;
		this.employeeSkills_1 = employeeSkills_1;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SKILL_ID", unique = true, nullable = false)
	public Integer getSkillId() {
		return this.skillId;
	}

	public void setSkillId(Integer skillId) {
		this.skillId = skillId;
	}

	@Column(name = "SKILL_NAME", unique = true, nullable = false, length = 100)
	public String getSkillName() {
		return this.skillName;
	}

	public void setSkillName(String skillName) {
		this.skillName = skillName;
	}

	@Column(name = "SKILL_DESC")
	public String getSkillDesc() {
		return this.skillDesc;
	}

	public void setSkillDesc(String skillDesc) {
		this.skillDesc = skillDesc;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "skillInfo")
	public Set<EmployeeSkill> getEmployeeSkills() {
		return this.employeeSkills;
	}

	public void setEmployeeSkills(Set<EmployeeSkill> employeeSkills) {
		this.employeeSkills = employeeSkills;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "skillInfo")
	public Set<SkillCategorySkillInfo> getSkillCategorySkillInfos() {
		return this.skillCategorySkillInfos;
	}

	public void setSkillCategorySkillInfos(Set<SkillCategorySkillInfo> skillCategorySkillInfos) {
		this.skillCategorySkillInfos = skillCategorySkillInfos;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "skillInfo")
	public Set<EmployeeSkill> getEmployeeSkills_1() {
		return this.employeeSkills_1;
	}

	public void setEmployeeSkills_1(Set<EmployeeSkill> employeeSkills_1) {
		this.employeeSkills_1 = employeeSkills_1;
	}

}
